﻿using DevComponents.DotNetBar.Controls;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace ScanFile {
  public partial class CircularProgressForm : Form {
    private CircularProgressForm() {
      InitializeComponent();
      SetStyle(ControlStyles.Selectable, false);
      circularProgress1 = new MyCircularProgress();
      this.circularProgress1.BackColor = System.Drawing.Color.Transparent;
      this.circularProgress1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
      this.circularProgress1.Dock = System.Windows.Forms.DockStyle.Fill;
      this.circularProgress1.Location = new System.Drawing.Point(8, 8);
      this.circularProgress1.Name = "circularProgress1";
      this.circularProgress1.ProgressBarType = DevComponents.DotNetBar.eCircularProgressType.Dot;
      this.circularProgress1.ProgressColor = System.Drawing.Color.LightSeaGreen;
      this.circularProgress1.Size = new System.Drawing.Size(424, 364);
      this.circularProgress1.Style = DevComponents.DotNetBar.eDotNetBarStyle.OfficeXP;
      this.circularProgress1.TabIndex = 0;
      circularProgress1.IsRunning = true;
      this.Controls.Clear();
      this.Controls.Add(circularProgress1);
    }

    private static CircularProgressForm _instance = null;

    [MethodImplAttribute(MethodImplOptions.Synchronized)]
    public static CircularProgressForm getInstance() {
      if (_instance == null) {
        _instance = new CircularProgressForm();
      }
      return _instance;
    }

  }

  public class MyCircularProgress: CircularProgress {
    public MyCircularProgress() {
      SetStyle(ControlStyles.Selectable, false);
    }
  }


 

}
